package com.example.demo;



import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class user {
    @Value("1")
    private int id;
    @Value("张三")
    private String name;
}
